$red: #fe0101;
$blue: #197fee;
$black: #080808;
$imgPath: 'http://img.580travel.com/image/bocmm/';

.van-dialog__confirm,
.van-dialog__confirm:active {
  color: #197fee !important;
}

// 公共颜色
.color-red {
  color: $red;
}

.color-black {
  color: $black;
}

.color-blue {
  color: #3889ff;
}

.color-gray {
  color: #7f7d7d;
}

// 背景图片地址和大小
@mixin bis($url) {
  background-image: url($url);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

@mixin borderRadius($radius) {
  -webkit-border-radius: $radius;
  -moz-border-radius: $radius;
  -ms-border-radius: $radius;
  -o-border-radius: $radius;
  border-radius: $radius;
}

// 定位全屏
@mixin allcover {
  position: absolute;
  top: 0;
  right: 0;
}

// 定位上下左右居中
@mixin center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

// 定位上下居中
@mixin ct {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

// 定位左右居中
@mixin cl {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

// 宽高
@mixin wh($width, $height) {
  width: $width;
  height: $height;
}

// 字体大小，颜色
@mixin sc($size, $color) {
  font-size: $size;
  color: $color;
}

// flex 布局和 子元素 对其方式
@mixin flex-align($type: space-between) {
  display: flex;
  justify-content: $type;
}

@mixin border-1px($color) {
  // 用于伪类的定位
  position: relative;

  &:after {
    //定义一个伪类,将它置于元素的底部.
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    border-top: 1px solid $color;
    content: ' ';
  }
}

// 超出隐藏
@mixin overflow($width) {
  width: $width;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

// 大按钮
@mixin full-btn-blue() {
  width: 690px;
  height: 88px;
  background-color: $blue;
  border-radius: 8px;
  border: none;
  @include sc(32px, #fff);
  margin: 0 auto;
  display: block;

  &:active {
    box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14),
      0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  }
}
